package com.zte.claa.inficombo.csa.app.service.devpower;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.druid.util.Utils;
import com.zte.claa.inficombo.csa.app.model.devpower.DevPowerBase;
import com.zte.claa.inficombo.csa.app.service.cache.CacheRedisManager;



@Controller
@RequestMapping("/zteclaa/test") 
public class DevPowerController {
	
	@Autowired
	private CacheRedisManager CacheRedisManager;
	
	@RequestMapping("/getredis")
	@ResponseBody
	public List<DevPowerBase> getDevPowerBaseByDev(HttpServletRequest request)  throws Exception {
		return CacheRedisManager.getDevPowerBaseByDev(request.getParameter("deveui"));
	} 
	
	
	
	
	
	
}
